﻿using System;
using System.Collections.Generic;

namespace Sustainalytics.Events.Exceptions
{
    public class EventValidationException : Exception
    {
        public List<ValidationResult> Results { get; set; }

        public EventValidationException Add(ValidationResult validationResult)
        {
            return this;
        }
    }


    public class ValidationResult
    {
       public int Code { get; set; }
  
       public bool IsError { get;  set; }

       public string Description {get;  set;}

       public ValidationResult()
       {
           this.IsError = true;
       }
    }
}
